package kxfang.com.common.databus;

/**
 * eventbus的事件
 * @param <T> code,在EventCode类里面声明
 * @param <E> 任何类型
 */
public class MastEvent<T,E> {
    private T code;
    private E obj;

    public MastEvent(T code, E obj) {
        this.code = code;
        this.obj = obj;
    }

    public T getCode() {
        return code;
    }

    public void setCode(T code) {
        this.code = code;
    }

    public E getObj() {
        return obj;
    }

    public void setObj(E obj) {
        this.obj = obj;
    }
}
